package haltica.com.mx.ape.domain;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.TableGenerator;
import javax.validation.constraints.NotNull;
import org.springframework.roo.addon.entity.RooEntity;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.tostring.RooToString;

@RooJavaBean
@RooToString
@RooEntity(versionField = "", table = "teclado_esclusa")
public class TecladoEsclusa {

    @Id
    @TableGenerator(name = "GEN_TEC_ESC", table = "sequence", pkColumnName = "SEQ_NAME", valueColumnName = "SEQ_COUNT", pkColumnValue = "SEQ_TEC_ESC", allocationSize = 1)
	@GeneratedValue(strategy=GenerationType.TABLE, generator="GEN_TEC_ESC")
    @Column(name = "ID_TECLADO_ESCLUSA", columnDefinition = "VARCHAR", length = 5)
    private String idTecladoEsclusa;

    @ManyToOne
    @JoinColumn(name = "ID_MODEM", referencedColumnName = "ID_MODEM", nullable = false)
    private Modem idModem;

    @Column(name = "NOMBRE_CORTO_TECLADO", columnDefinition = "VARCHAR", length = 15)
    @NotNull
    private String nombreCortoTeclado;

    @Column(name = "NOMBRE_CORTO_ESCLUSA", columnDefinition = "VARCHAR", length = 15)
    @NotNull
    private String nombreCortoEsclusa;

    @Column(name = "ENABLED", columnDefinition = "BIT")
    @NotNull
    private Boolean enabled;

    @Column(name = "DESCRIPCION", columnDefinition = "VARCHAR", length = 80)
    private String descripcion;
}
